#include "Shm.hpp"
#include <unistd.h>

int main()
{
    string pathname = ".";
    int projid = 0x66;
    Shm shm(pathname, projid);
    shm.Get();
    shm.Attach();
    // 读取数据
    while (1)
    {
        printf("%s\n", (char *)shm.Start());
        sleep(1);
    }

    shm.Destroy();
}